package org.core.worker;

import org.core.util.IniOperation;


public class ReadIni 
{

	private static IniOperation ini =new IniOperation("./cfg.ini");
	private static String masterServer; 
	private static int    serverPort;
	private static String functionName;
	

	public ReadIni(){
		
	}
	
	public static String getMasterServer() {
		return masterServer=ini.getItem("Main", "MasterServer");
	}

	public static int getServerPort() {
		String tmpString =ini.getItem("Main", "ServerPort");
		return serverPort=Integer.valueOf(tmpString).intValue();
	}
 
	public static String getFunctionName() {
		return functionName=ini.getItem("Main", "Function_Name");
	}


	
	


	
	
	
	
	
	
}